package com.wangtianxiang.sxp.dbbase.config.db;

import com.baomidou.mybatisplus.annotation.DbType;

import java.util.HashMap;
import java.util.Map;

/*
 * mybatis 配置信息
 */
public class SxpMybaitsProperties {

    private String configLocation;

    private Map<String,Object> configurationProperties = new HashMap<>();

    private DbType dbType;


    public String getConfigLocation() {
        return configLocation;
    }

    /**
     * Set the location of the MyBatis {@code SqlSessionFactory} config file. A typical value is
     * "WEB-INF/mybatis-configuration.xml" or "classpath:mybatis-configuration.xml".
     */
    public void setConfigLocation(String configLocation) {
        this.configLocation = configLocation;
    }

    public Map<String,Object> getConfigurationProperties() {
        return configurationProperties;
    }

    /**
     * Set optional properties to be passed into the SqlSession configuration, as alternative to a
     * {@code &lt;properties&gt;} tag in the configuration xml file.
     */
    public void setConfigurationProperties(Map<String,Object> configurationProperties) {
        this.configurationProperties = configurationProperties;
    }

    public DbType getDbType() {
        return dbType;
    }

    public void setDbType(DbType dbType) {
        this.dbType = dbType;
    }
}
